const env = require('./env.json')
const config = {
  features: [
    { key: 'dashboard', name: '仪表盘', route: 'dashboard' },
    { key: 'user', name: '用户', route: 'users' },
    { key: 'role', name: '角色', route: 'roles' },
    { key: 'shop', name: '店铺', route: 'shops' },
    { key: 'order', name: '订单', route: 'orders' }
  ],
  password: { secret: env.password.secret },
  jwt: { secret: env.password.secret },
  env: env.env,
  sequelize: {
    database: env.sequelize.database,
    username: env.sequelize.username,
    password: env.sequelize.password,
    host: env.sequelize.host,
    dialect: env.sequelize.dialect
  },
  email: {
    host: 'smtp.163.com',
    user: '',
    pass: '',
    from: ''
  },
  storage: env.storage,
  resource_domain: 'http://staticfile.mohou.com/'
}
module.exports = config
